package tx.oopa.circuit.io;

import java.io.IOException;

public interface IFileStrategy {

    /**
     * Reads the specified file and returns its contents as a string
     * 
     * @param path
     *            The path to the file
     * @return The content of the file
     */
    Object readFromFile(String path) throws IOException;
    
    /**
     * Checks whether the specified path exists
     * @param path The path to check
     * @return Whether the path exists
     */
    boolean fileIsValid(String path) throws IOException;
}
